package top.kaoshanji.web.config;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;


/**
 * 代码清单 ch02-01：HelloJava第一个版本
 * @author kaoshanji
 * @time 2023/1/12 22:06
 */
public class MyWebApplicationInitializer implements WebApplicationInitializer {

   // 日志属性
    private static final Logger logger = LogManager.getLogger(MyWebApplicationInitializer.class);

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {

        logger.info("...代码清单 ch02-01：HelloJava第一个版本...");
        logger.debug(".....contextPath: {} ....", servletContext.getContextPath());

       
    }


}
